#include "stdafx.h"
#include "totalres.h"
#include <QtGui/QApplication>

int main(int argc, char *argv[])
{
	int nRetCode = 0;

	QApplication App(argc, argv);

	QObject::connect(&App, SIGNAL(focusChanged(QWidget*, QWidget*)), &TotalRes::GetInstance(), SLOT(OnFocusChanged(QWidget*, QWidget*)));

	nRetCode = TotalRes::GetInstance().Init();
	LOG_PROCESS_ERROR(nRetCode);

	TotalRes::GetInstance().show();
	App.exec();

	return 0;
Exit0:
	TotalRes::GetInstance().UnInit();

	return 0;
}
